import LayOut from '@/layout/LayOut.vue'
export default {
    // 一级路由
    path: '/admin',
    component: LayOut,
    // 二级路由
    children: [{
            path: '/',
            redirect: '/admin/welcome'
        }, {
            path: 'welcome',
            component: () =>
                import ('@/layout/WelcomePage.vue')
        }, {
            path: 'user/list',
            component: () =>
                import ('@/views/UserPage/UserList/UserList.vue')
        },
        {
            path: 'user/add',
            component: () =>
                import ('@/views/UserPage/UserAdd/UserAdd.vue')
        },
        {
            path: 'user/level',
            component: () =>
                import ('@/views/UserPage/UserLevel/UserLevel.vue')
        }
    ]
}